#include "UIObject.h"
#include <utility>

CUIObject::CUIObject()
{

}


CUIObject::~CUIObject( void )
{
}

BOOL CUIObject::AddProperty( CSkinProperty* pSkinProperty )
{
    SKIN_PROPERTY_INDEX uProIndex = pSkinProperty->GetPropertyIndex();
    m_mapProperty.insert( std::make_pair( uProIndex, pSkinProperty ) );
    return TRUE;
}

UINT CUIObject::GetID()
{
    CSkinProperty* pProperty = m_mapProperty.at( SKIN_PROPERTY_INDEX_ID );
    return pProperty->m_iVal;
}
